-- GENERATED SPELL FOR [Lord Tirion Fordring] --


function spell0_12126(pUnit, Event) --@Crusader Strike,n/a--
pUnit:FullCastSpellOnTarget(14518,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12126', 30286, 1)
end

function spell1_12126(pUnit, Event) --@Devotion Aura,Self--
pUnit:FullCastSpellOnTarget(17232,pUnit)
pUnit:RegisterEvent('Sorts_12126', 691, 1)
end

function spell2_12126(pUnit, Event) --@Holy Cleave,n/a--
pUnit:FullCastSpellOnTarget(18819,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12126', 0, 1)
end

function spell3_12126(pUnit, Event) --@Holy Strike,n/a--
pUnit:FullCastSpellOnTarget(17143,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12126', 659, 1)
end

function Sorts_12126(pUnit, Event)
local choix_sorts_12126 = math.random(0, 3)
if choix_sorts_12126 == 0 then
pUnit:RegisterEvent('spell0_12126', 1, 1)
end
if choix_sorts_12126 == 1 then
pUnit:RegisterEvent('spell1_12126', 1, 1)
end
if choix_sorts_12126 == 2 then
pUnit:RegisterEvent('spell2_12126', 1, 1)
end
if choix_sorts_12126 == 3 then
pUnit:RegisterEvent('spell3_12126', 1, 1)
end
end

function mob12126_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12126', math.random(1500, 3000), 1)
end

function mob12126_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12126_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12126_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12126, 1, 'mob12126_Action')
RegisterUnitEvent(12126, 2, 'mob12126_Leave')
RegisterUnitEvent(12126, 3, 'mob12126_Kill')
RegisterUnitEvent(12126, 4, 'mob12126_Die')
